import http from '@/utils/http'

const baseURL = '/v1.0'

/**
 * 意见提交
 * @param {String} adviceStr - 用户提交的意见
 */
export const AdviceFeedback = adviceStr => {
  return http.post(`${baseURL}/public/adviceFeedback`, adviceStr)
}

/**
 * 管理员界面接收用户意见
 *  {Object} pagenum 当前的页数；pagesize 每页显示的条数
 */
export const getAdvice = (pageNum, pageSize) => {
  return http.get(`${baseURL}/public/advice`, pageNum, pageSize)
}
